<?php
class Admin_Form_Naglowek extends Zend_Form
{
    public function init()
    {
       //$request = new Zend_Controller_Request_Http();
        $this->setMethod('post');
        $this->setName('naglowek');
        $this->setAction('');
        $this->setAttrib('enctype', 'multipart/form-data');
        
        $this->addElement('text','title',array(
            'label' => "nazwa serwisu",
            'required' => true
                   
        ));
        
        $this->addElement('textarea','keywords',array(
            'label' => "słowa kluczowe oddzielone spacją",
            'rows' => 6,
            'cols' => 40,
            'required' => true
            
        ));
        
        $this->addElement('file','favicon',array(
            'label' => "plik favicon",
            'validators' => array(
                array(
                'validator' => 'Count',
                'options'   => array(1, 1)
                    )
            ),
            'required' => true
            
        ));
        
        $this->addElement('textarea','opis',array(
            'label' => "opis twojej strony",
            'rows' => 6,
            'cols' => 40,
            'required' => true
            
        ));
        
         $this->addElement('file','css',array(
            'label' => "plik css",
            'validators' => array(
                array(
                'validator' => 'Count',
                'options'   => array(1, 1)
                    )
            ),
            'required' => true
            
        ));
          
            $this->addElement('submit','submit',array(
            'label' => "Wyślij"
            
        ));
             
             
    }
}
?>
